package com.zjj.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class Product implements Serializable {
    @Serial
    private static final long serialVersionUID = 3059189238898215982L;

    //id
    private int id;
    //商品名称
    private String productName;

    //商品价格
    private Double price;

    //库存
    private int stock_quantity;

    //描述
    private String description;

    //图片
    private String imgUrl;
    //创建时间
    private Date createAt;

    //最后更新时间
    private Date updateAt;
    //状态

    private String status;
    //货币类型
    private String currency;

    //所属类别的ID
    private int categoryId;
    //品牌ID
    private int brandId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getStock_quantity() {
        return stock_quantity;
    }

    public void setStock_quantity(int stock_quantity) {
        this.stock_quantity = stock_quantity;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", price=" + price +
                ", stock_quantity=" + stock_quantity +
                ", description='" + description + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", createAt=" + createAt +
                ", updateAt=" + updateAt +
                ", status='" + status + '\'' +
                ", currency='" + currency + '\'' +
                ", categoryId=" + categoryId +
                ", brandId=" + brandId +
                '}';
    }
}
